package com.hdoit.kylin.web.document.modelconfig;

import com.hdoit.kylin.web.document.providers.ReportCataLogEmployeeProvider;
import com.hdoit.kylin.web.document.providers.ReportTypeProvider;
import com.hdoit.kylin.web.user.modelconfig.StudentConfig;
import com.hdoit.kylin.web.user.provider.StudentProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.RequiredAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;
import com.tennetcn.web.behav.providers.EmployeeProvider;
import com.tennetcn.web.cbase.providers.YesOrNoProvider;

/**
 * @author      guoshuren
 * @email       
 * @createtime  2018年02月01日 20:14:49
 * @comment
 */
public class ReportCataLogConfig extends ModelMetadataAttributeConfiguration{
    public ReportCataLogConfig(){
    	this.setProperty("createUserName")
    		.hasAttribute(new DisplayNameAttribute("创建者"));
    	
    	this.setProperty("reportType")
    		.hasAttribute(new DisplayNameAttribute("文档类型"))
    		.hasAttribute(new DropDownListAttribute(new ReportTypeProvider(),false));
    	
        this.setProperty("UUID")
            .hasAttribute(new DisplayNameAttribute("文档ID"));

        this.setProperty("publicMark")
            .hasAttribute(new DisplayNameAttribute("公开标记"))
            .hasAttribute(new DropDownListAttribute(new YesOrNoProvider()));

        this.setProperty("shareIds")
        	.hasAttribute(new DisplayNameAttribute("分享给"))
        	.hasAttribute(new DropDownListAttribute(new ReportCataLogEmployeeProvider(),true));
        
        this.setProperty("fileName")
        	.hasAttribute(new DisplayNameAttribute("文件名"))
        	.hasAttribute(new RequiredAttribute("请上传文件"));
    }
}
